home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / UTIL / Msh 1.0.0.sit / Msh 1.0.0 f / Manual / MAN2Q.HLP < prev    next >
Text File  |  1996-11-14  |  48KB  |  2,119 lines

  1. /***Intro***/ QuickDraw Offscreen
  2. Intro(2q)
  3.  
  4. 【名前】
  5.     Intro - Toolbox: QuickDraw(man2q.hlp)
  6.  
  7. 【概要】
  8.     QuickDraw
  9.         Pen
  10.         Cursor
  11.         Icon
  12.  
  13.     Color Manager
  14.  
  15. 【Inside Macintosh】
  16.                                 <<キーワード>>
  17.     QuickDraw / Color QuickDraw                QuickDraw
  18.         I-135    QuickDraw
  19.         VI-16    Graphics Overview
  20.         V-39    Color QuickDraw
  21.         VI-17    Color QuickDraw
  22.             VI-20    Palette Manager
  23.             VI-19    Color Picker Package
  24.             VI-18    Picture Utilities Package
  25.             VI-21    Graphics Devices Manager
  26.             V-133    Color Manager
  27.  
  28.         廃止    V-117    Graphics Devices
  29.             V-151    Palette Manager
  30.             V-171    Color Picker Package
  31.  
  32.     Toolbox Utilities
  33.         I-465    カーソル など
  34.  
  35. 【関連項目】
  36.     カラー関連(およびその他のグラフィック)
  37.         PaletteManager(2c)
  38.         ColorPicker(2c)        PictureUtilites(2c)
  39.  
  40.     GUI(2g)
  41.         FontManager(2g)        WindowManager(2g)
  42.         ControlManager(2g)    MenuManager(2g)
  43.         DialogManager(2g)
  44.  
  45.     テキスト
  46.         TextEdit(2t)        FontManager(2t)
  47.  
  48. 【ヘッダー】
  49.     QuickDraw.h
  50.     QDOffscreen.h
  51.     ToolUtil.h    一部
  52.  
  53. 【残り】
  54. /***InitGraf***/
  55. InitGraf(2q)
  56.  
  57. 【名前】
  58.     InitGraf - グラフポートの初期化
  59.  
  60. 【書式】
  61.     ■InitGraf    I-162
  62.  
  63.     void    InitGraf(void * globalPtr);
  64.           プログラムの一番最初に呼び出してください
  65. /***OpenPort***/ InitPort ClosePort OpenCPort InitCPort CloseCPort
  66. OpenPort(2q)
  67.  
  68. 【名前】
  69.     OpenPort   - グラフポートを初期化し、開く
  70.     InitPort   - グラフポートの再初期化
  71.     ClosePort  - グラフポートのメモリ廃棄
  72.     OpenCPort  -
  73.     InitCPort  -
  74.     CloseCPort -
  75.  
  76. 【書式】
  77.     ■OpenPort    I-163
  78.     ■InitPort    I-164
  79.     ■ClosePort    I-164
  80.     ■OpenCPort    V-67
  81.     ■InitCPort    V-67
  82.     ■CloseCPort    V-68
  83.  
  84.     void    OpenPort(GrafPtr port);
  85.     void    InitPort(GrafPtr port);
  86.     void    ClosePort(GrafPtr port);
  87.  
  88.     void    OpenCPort(CGrafPtr port);
  89.     void    InitCPort(CGrafPtr port);
  90.     void    CloseCPort(CGrafPtr port);
  91. /***SetPort***/ GetPort GrafDevice
  92. SetPort(2q)
  93.  
  94. 【名前】
  95.     SetPort - カレントグラフポートの設定
  96.     GetPort - カレントグラフポートの取得
  97.     GrafDevice -
  98.  
  99. 【書式】
  100.     ■SetPort    I-165
  101.     ■GetPort    I-165
  102.     ■GrafDevice    I-165
  103.  
  104.     void    SetPort(GrafPtr port);    portをカレントグラフポートとする
  105.     void    GetPort(GrafPtr *port);    カレントグラフポートのポインタを返す
  106.  
  107.     void    GrafDevice(short device);
  108. /***SetPortBits***/ SetPortPix PortSize MovePortTo SetOrigin SetClip GetClip ClipRect
  109. SetPortBits(2q)
  110.  
  111. 【名前】
  112.     SetPortBits - グラフポートのビットマップの設定
  113.     SetPortPix  - グラフポートのピックスマップの設定
  114.     PortSize    - グラフポートの大きさ変更
  115.     MovePortTo  - グラフポートの左上変更
  116.     SetOrigin   - グラフポートの座標設定
  117.     SetClip     - クリッピングリージョンの設定
  118.     GetClip     - クリッピングリージョンの取得
  119.     ClipRect    - Rect をグラフポートのクリッピングリージョンに設定
  120.  
  121. 【書式】
  122.     ■SetPortBits    I-165
  123.     ■SetPortPix    V-76
  124.     ■PortSize    ??
  125.     ■MovePortTo    I-170
  126.     ■SetOrigin    I-166
  127.     ■SetClip    I-166
  128.     ■GetClip    I-167
  129.     ■ClipRect    I-167
  130.  
  131.     void    SetPortBits(const BitMap *bm);
  132.     void    SetPortPix(PixMapHandle pm);
  133.  
  134.     void    PortSize(short width, short height);
  135.  
  136.     void    MovePortTo(short leftGlobal, short topGlobal);
  137.         グラフポートの左上を指定座標(グローバル座標)とする
  138.  
  139.     void    SetOrigin(short h, short v);
  140.         グラフポートの左上がローカル座標でh,vとなるようにする
  141.  
  142.     void    SetClip(RgnHandle rgn);
  143.         グラフポートのクリッピングリージョンをrgnの形にする
  144.  
  145.     void    GetClip(RgnHandle rgn);
  146.         rgnにグラフポートのクリッピングリージョンを得る
  147.  
  148.     void    ClipRect(const Rect *r);
  149.         rをグラフポートのクリッピングリージョンの形にする
  150. /***InitCursor***/ GetCursor SetCursor HideCursor ShowCursor ObscureCursor SetCCursor GetCCursor AllocCursor DisposCCursor ShieldCursor Cursor Cursor CursPtr CursHandle CCrsr CCrsrPtr CCrsrHandle
  151. InitCursor(2q)
  152.  
  153. 【名前】
  154.     InitCursor    - カーソルを標準に設定
  155.     GetCursor     - カーソルリソース('CURS')の取得
  156.     SetCursor     - カーソルの設定
  157.     HideCursor    - カーソルレベルを-1する
  158.     ShowCursor    - カーソルレベルを+1する
  159.     ObscureCursor - 一旦カーソルを消す
  160.     SetCCursor    -
  161.     GetCCursor    -
  162.     AllocCursor   -
  163.     DisposCCursor -
  164.     ShieldCursor  - 指定 Rect 内にカーソルがあった場合カーソルを消す
  165.     Cursor        - カーソル data type
  166.     CCrsr         - カラーカーソル data type
  167.  
  168. 【書式】
  169.     ■InitCursor    I-167
  170.     ■GetCursor    I-474 (Toolbox Utilities)
  171.     ■SetCursor    I-167
  172.     ■HideCursor    I-168
  173.     ■ShowCursor    I-168
  174.     ■ObscureCursor    I-168
  175.     ■SetCCursor    V-75
  176.     ■GetCCursor    V-75
  177.     ■AllocCursor    V-75
  178.     ■DisposCCursor    V-75
  179.     ■ShieldCursor    I-474 (Toolbox Utilities)
  180.  
  181.     void    InitCursor(void);
  182.             カーソルの状態を標準(矢印)にし、カーソルを表示する
  183.  
  184.     CursHandle    GetCursor(short cursorID);
  185.                 iBeamCursor    1    I
  186.                 crossCursor    2    +
  187.                 plusCursor    3    +(太い)
  188.                 watchCursor    4    腕時計
  189.  
  190.     void    SetCursor(const Cursor *crsr);
  191.             arrow(グローバル変数) - 通常の矢印カーソル
  192.  
  193.     void    HideCursor(void);        カーソルレベルを-1する
  194.     void    ShowCursor(void);        カーソルレベルを+1する
  195.  
  196.     void    ObscureCursor(void);
  197.             一旦カーソルを消し、マウスが動かされると表示する
  198.  
  199.     void        SetCCursor(CCrsrHandle cCrsr);
  200.     CCrsrHandle    GetCCursor(short crsrID);
  201.     void    AllocCursor(void);
  202.     void    DisposCCursor(CCrsrHandle cCrsr);
  203.  
  204.     void    ShieldCursor(const Rect *shieldRect, Point offsetPt);
  205.           カーソルが中にあったならば、カーソルレベルを-1する。
  206.           そうでなければマウスを動かしたときに-1する
  207.           注意: ShowCursor() とついにしてカーソルレベルを合わすこと。
  208.  
  209.             offsetPt = ??
  210.  
  211.         例:    現ポートに対して
  212.  
  213.             Point    offs = { 0, 0 };
  214.             ShieldCursor(windowPtr->port.bounds, offs);
  215.  
  216.     ■Cursor    I-146
  217.       Cursor
  218.         Bits16    data;
  219.         Bits16    mask;
  220.         Point    hotSpot;
  221.       CursPtr    Cursor *
  222.       CursHandle    Cursor **
  223.  
  224.     ■CCrsr        V-62
  225.       CCrsr
  226.         short    crsrType;
  227.         PixMapHandle crsrMap;
  228.         Handle    crsrData;
  229.         Handle    crsrXData;
  230.         short    crsrXValid;    depath of expanded data (0 = none)
  231.         Handle    crsrXHandle;    future use
  232.         Bits16    crsr1Data;
  233.         Bits16    crsrMask;
  234.         Point    crsrHotSpot;
  235.         long    crsrXTable;    private
  236.         long    crsrID;        private
  237.       CCrsrPtr    CCrsr *
  238.       CCrsrHandle    CCrsr **
  239. /***HidePen***/ ShowPen GetPen PenSize PenMode PenPat PenNormal GetPenState SetPenState PenState
  240. HidePen(2q)
  241.  
  242. 【名前】
  243.     HidePen     - ペンを消す(-1する)
  244.     ShowPen     - ペンを表示(+1する)
  245.     GetPen      - 現在のペン位置を返す
  246.     PenSize     - ペンサイズの設定
  247.     PenMode     - ペン転送モードの設定
  248.     PenPat      - ペンパターンの設定
  249.     PenNormal   - ペンを通常状態にする
  250.     GetPenState - 現在のペン性質を知る
  251.     SetPenState - ペンの性質を一度に変える
  252.     PenPixPat   - PixPat をペンパターンに設定
  253.     PenState    - data type
  254.  
  255. 【書式】
  256. ### ペンの属性
  257.     pnMode
  258.     pnSize
  259.     pnPat
  260.  
  261.     ■HidePen    I-168
  262.     ■ShowPen    I-168
  263.     ■GetPen    I-169
  264.     ■PenSize    I-169
  265.     ■PenMode    I-169
  266.     ■PenPat    I-169
  267.     ■PenNormal    I-169
  268.     ■GetPenState    I-169
  269.     ■SetPenState    I-169
  270.     ■PenPixPat    V-74
  271.  
  272.     void    HidePen(void);        ペンを消す(-1する)
  273.     void    ShowPen(void);        ペンを表示(+1する)
  274.     void    GetPen(Point *pt);    ペン位置をローカル座標で返す。
  275.  
  276.     void    PenSize(short width, short height);
  277.  
  278.     void    PenMode(short mode);
  279.             patCopy        
  280.             patOr        
  281.             patXor        
  282.             patBic        
  283.             notPatCopy    
  284.             notPatOr    
  285.             notPatXor    
  286.             notPatBic    
  287.  
  288.     void    PenPat(const unsigned char * pat);
  289.             black(default)
  290.             white
  291.             gray
  292.             ltGray
  293.             dkGray
  294.  
  295.     void    PenNormal(void);
  296.             サイズ        1x1
  297.             モード        patCopy
  298.             パターン    black
  299.  
  300.     void    GetPenState(PenState *pnState);
  301.     void    SetPenState(const PenState *pnState);
  302.  
  303.     void    PenPixPat(PixPatHandle pp);
  304.  
  305.     ■PenState    I-169
  306.       PenState
  307.         Point    pnLoc;
  308.         Point    pnSize;
  309.         short    pnMode;
  310.         Pattern pnPat;
  311. /***Pattern***/ PatPtr PatHandle GetPattern GetIndPattern NewPixPat GetPixPat MakeRGBPat DisposPixPat CopyPixPat PixPat PixPatPtr PixPatHandle
  312. Pattern(2q)
  313.  
  314. 【名前】
  315.     Pattern       - パターン data type
  316.     PixPat        - 拡張パターン data type
  317.     GetPattern    - パターンリソース('PAT ')の取得
  318.     GetIndPattern - パターンリソース('PAT#')の取得
  319.     NewPixPat     -
  320.     GetPixPat     -
  321.     MakeRGBPat    -
  322.     DisposPixPat  -
  323.     CopyPixPat    -
  324.  
  325. 【書式】
  326.     ■PatPtr,PatHandle    I-473 (Toolbox Utilities)
  327.     ■GetPattern        I-473 (Toolbox Utilities)
  328.     ■GetIndPattern        I-473 (Toolbox Utilities)
  329.     ■NewPixPat        V-72
  330.     ■GetPixPat        V-73
  331.     ■MakeRGBPat        V-73
  332.     ■DisposPixPat        V-73
  333.     ■CopyPixPat        V-73
  334.  
  335.  
  336.     ■Pattern    I-145    オリジナルの 8x8 モノクロパターン
  337.       Pattern    unsigned char [8]
  338.       PatPtr    Pattern *
  339.       PatHandle    Pattern    **
  340.  
  341.     ■PixPat      V-55    拡張パターン
  342.       PixPat
  343.         short    patType;
  344.         PixMapHandle patMap;
  345.         Handle    patData;
  346.         Handle    patXData;
  347.         short    patXValid;
  348.         Handle    patXMap;
  349.         Pattern pat1Data;
  350.  
  351.       PixPatPtr    PixPat *
  352.       PixPatHandle    PixPat **
  353.  
  354.     ■モノクロ
  355.     PatHandle    GetPattern(short patternID);
  356.  
  357.     void        GetIndPattern(Pattern thePat, short patternListID,
  358.                         short index);
  359.  
  360.     ■拡張パターンルーチン
  361.     PixPatHandle    NewPixPat(void);
  362.     PixPatHandle    GetPixPat(short patID);
  363.  
  364.     void        MakeRGBPat(PixPatHandle pp, const RGBColor *myColor);
  365.  
  366.     void        DisposPixPat(PixPatHandle pp);
  367.  
  368.     void        CopyPixPat(PixPatHandle srcPP, PixPatHandle dstPP);
  369. /***MoveTo***/ Move LineTo Line
  370. MoveTo(2q)
  371.  
  372. 【名前】
  373.     MoveTo - ペンの絶対移動
  374.     Move   - ペンの相対移動
  375.     LineTo - 線を描く(絶対座標)
  376.     Line   - 線を描く(相対座標)
  377.  
  378. 【書式】
  379.     ■MoveTo    I-170
  380.     ■Move        I-170
  381.     ■LineTo    I-170
  382.     ■Line        I-171
  383.  
  384.     void    MoveTo(short h, short v);
  385.     void    Move(short dh, short dv);
  386.  
  387.     void    LineTo(short h, short v);
  388.     void    Line(short dh, short dv);
  389. /***TextFont***/ TextFace TextMode TextSize SpaceExtra CharExtra
  390. TextFont(2q)
  391.  
  392. 【名前】
  393.     TextFont   - テキストフォントの設定
  394.     TextFace   - テキストフェースの設定
  395.     TextMode   - テキスト(フォントパターン転送)モードの設定
  396.     TextSize   - テキストサイズの設定
  397.     SpaceExtra - テキスト文字間隔の設定
  398.     CharExtra  - 文字間隔の設定(CGrafPortのみ)
  399.  
  400. 【書式】
  401.     ■TextFont    I-171
  402.     ■TextFace    I-171
  403.     ■TextMode    I-171
  404.     ■TextSize    I-171
  405.     ■SpaceExtra    I-172
  406.     ■CharExtra    V-77
  407.     ■説明        V-81
  408.  
  409.     void    TextFont(short font);
  410.         0    システムフォント(Chicago, 漢字Talk=Osaka)
  411.         1    アプリケーションフォント(Geneva, 漢字Talk=Osaka)
  412.  
  413.         GetFontName()    フォント名 -> フォント番号
  414.         GetFNum()    フォント番号 -> フォント名
  415.         RealFont()    フォントパターンが在るかどうかのチェック
  416.  
  417.     void    TextFace(short face);
  418.             0    normal    通常
  419.             1    bold    ボールド(太くする)
  420.             2    italic    斜体
  421.             4    underline    下線
  422.             8    outline    白抜き
  423.             0x10 shadow    影付き
  424.             0x20 condense    ?
  425.             0x40 extend    ?
  426.  
  427.         現在の設定変更
  428.             TextFace(theProt->txFace - bold);
  429.             TextFace(theProt->txFace + bold);
  430.  
  431.     void    TextMode(short mode);
  432.             srcOr(default)    
  433.             srcXor        
  434.             srcBic        
  435.             ### 現在はふえたようである
  436.  
  437.     void    TextSize(short size);
  438.             0(default)    12 ポイントになります
  439.             1 〜         
  440.  
  441.     void    SpaceExtra(Fixed extra);
  442.  
  443.     void    CharExtra(Fixed extra);
  444.             characterの幅を広げる(マイナスもOK, defalut=0)
  445.  
  446. 【関連項目】
  447.     FontManager(2t)
  448. /***DrawChar***/ DrawString DrawText CharWidth StringWidth TextWidth MeasureText GetFontInfo FontInfo
  449. DrawChar(2q)
  450.  
  451. 【名前】
  452.     DrawChar    - 文字の表示
  453.     DrawString  - 文字列の表示
  454.     DrawText    - テキストの表示
  455.     CharWidth   - 文字幅を求める (ドット単位)
  456.     StringWidth - 文字列幅を求める (ドット単位)
  457.     TextWidth   - テキスト幅を求める (ドット単位)
  458.     MeasureText -
  459.     GetFontInfo - 現在テキスト情報の取得
  460.     FontInfo    - データタイプ
  461.  
  462. 【書式】
  463.     ■DrawChar    I-172
  464.     ■DrawString    I-172
  465.     ■DrawText    I-172
  466.     ■CharWidth    I-173
  467.     ■StringWidth    I-173
  468.     ■TextWidth    I-173
  469.     ■MeasureText    IV-25
  470.     ■GetFontInfo    I-173
  471.  
  472.     void    DrawChar(short ch);
  473.     void    DrawString(ConstStr255Param s);
  474.     void    DrawText(const void *textBuf, short firstByte,
  475.                             short byteCount);
  476.         textBuf の firstByte(0以上) の位置から byteCount 文字を表示
  477.         します。
  478.  
  479.     short    CharWidth(short ch);
  480.     short    StringWidth(ConstStr255Param s);
  481.     short    TextWidth(const void *textBuf, short firstByte,
  482.             short byteCount);
  483.  
  484.     void    MeasureText(short count, const void *textAddr, void *charLocs);
  485.  
  486.     void    GetFontInfo(FontInfo *info);
  487.  
  488.     ■FontInfo    I-173
  489.       FontInfo
  490.         short    ascent;
  491.         short    descent;
  492.         short    widMax;
  493.         short    leading;
  494. /***ForeColor***/ BackColor RGBForeColor RGBBackColor GetForeColor GetBackColor BackPat BackPixPat
  495. ForeColor(2q)
  496.  
  497. 【名前】
  498.     ForeColor    -
  499.     BackColor    - 背景色を決める
  500.     RGBForeColor -
  501.     RGBBackColor -
  502.     GetForeColor -
  503.     GetBackColor -
  504.     BackPat         -
  505.     BackPixPat   -
  506.  
  507. 【書式】
  508.     ■ForeColor    I-173
  509.     ■BackColor    I-174
  510.     ■RGBForeColor    V-68
  511.     ■RGBBackColor    V-68
  512.     ■GetForeColor    V-68
  513.     ■GetBackColor    V-68
  514.     ■BackPat    I-167
  515.     ■BackPixPat    V-74
  516.  
  517.     void    ForeColor(long color);
  518.     void    BackColor(long color);
  519.           33 blackColor
  520.           30 whiteColor
  521.          205 redColor
  522.          341 greenColor
  523.          409 blueColor
  524.          273 cyanColor
  525.          137 magentaColor
  526.           69 yellowColor
  527.  
  528.  
  529.     void    RGBForeColor(const RGBColor *color);
  530.     void    RGBBackColor(const RGBColor *color);
  531.  
  532.     void    GetForeColor(RGBColor *color);
  533.     void    GetBackColor(RGBColor *color);
  534.  
  535.     void    BackPat(const unsigned char *pat);
  536.     void    BackPixPat(PixPatHandle pp);
  537. /***ColorBit***/
  538. ColorBit(2q)
  539.  
  540. 【名前】
  541.     ColorBit - カラー出力機に表示プレーンを指定する
  542.  
  543. 【書式】
  544.     ■ColorBit    I-174
  545.  
  546.     void    ColorBit(short whichBit);
  547.  
  548.         カラー出力機に表示プレーンを指定する
  549. /***Rect***/ SetRect OffsetRect InsetRect SectRect UnionRect EqualRect EmptyRect
  550. Rect(2q)
  551.  
  552. 【名前】
  553.     Rect       - Rect データ形式
  554.     SetRect    - Rect データの設定
  555.     OffsetRect - Rect の移動
  556.     InsetRect  - Rect の縮小(マイナス値で拡大)
  557.     SectRect   - Rect の共通部分を得る
  558.     UnionRect  - Rect 2つを囲む Rect を求める
  559.     EqualRect  - Rect が同じかチェック
  560.     EmptyRect  - Rect が空(面積を持たない)かチェック
  561.  
  562. 【書式】
  563.     ■SetRect    I-174
  564.     ■OffsetRect    I-174
  565.     ■InsetRect    I-175
  566.     ■SectRect    I-175
  567.     ■UnionRect    I-175
  568.     ■EqualRect    I-176
  569.     ■EmptyRect    I-176
  570.  
  571.     ■Rect        I-141
  572.       Rect
  573.         short    top;
  574.         short    left;
  575.         short    bottom;
  576.         short    right;
  577.  
  578.     void    SetRect(Rect *r, short left, short top, short right,
  579.                 short bottom);
  580.  
  581.     void    OffsetRect(Rect *r, short dh, short dv);
  582.             rを dh(水平方向),dv(垂直方向) に移動
  583.             次の処理と同じ
  584.                 r->left  += dh;
  585.                 r->right += dh;
  586.                 r->top   += dv;
  587.                 r->bottom += dv;
  588.  
  589.     void    InsetRect(Rect *r, short dh, short dv);
  590.             rを内側にdh,dvの2倍ずつ縮小させる
  591.             次の処理と同じ
  592.                 r->left  += dh;
  593.                 r->right -= dh;
  594.                 r->top   += dv;
  595.                 r->bottom -= dv;
  596.  
  597.     Boolean    SectRect(const Rect *src1, const Rect *src2, Rect *dstRect);
  598.             TRUE    共通部分があった (dstRect にセットされる)
  599.             FALSE    共通部分がない
  600.  
  601.     void    UnionRect(const Rect *src1, const Rect *src2, Rect *dstRect);
  602.             2つの Rect を囲める最小の四角形を、dstRect に返す
  603.  
  604.     Boolean    EqualRect(const Rect *rect1, const Rect *rect2);
  605.             TRUE    完全に一致
  606.             FALSE    一致していない
  607.  
  608.     Boolean    EmptyRect(const Rect *r);
  609.             r が面積を持たなければ TRUE となる。
  610. /***FrameRect***/ PaintRect EraseRect InvertRect FillRect FillCRect
  611. FrameRect(2q)
  612.  
  613. 【名前】
  614.     FrameRect  - Rect の輪郭をかく
  615.     PaintRect  - Rect を塗る
  616.     EraseRect  - Rect を消す
  617.     InvertRect - Rect 部分の反転
  618.     FillRect   - Rect をパターンで塗る
  619.     FillCRect  - Rect を拡張パターンで塗る
  620.  
  621. 【書式】
  622.     ■FrameRect    I-176
  623.     ■PaintRect    I-177
  624.     ■EraseRect    I-177
  625.     ■InvertRect    I-177
  626.     ■FillRect    I-177
  627.     ■FillCRect    V-69
  628.  
  629.     void    FrameRect (const Rect *r);
  630.     void    PaintRect (const Rect *r);
  631.     void    EraseRect (const Rect *r);
  632.     void    InvertRect(const Rect *r);
  633.  
  634.     void    FillRect (const Rect *r, const unsigned char * pat);
  635.     void    FillCRect(const Rect *r, PixPatHandle pp);
  636. /***FrameOval***/ PaintOval EraseOval InvertOval FillOval FillCOval
  637. FrameOval(2q)
  638.  
  639. 【名前】
  640.     FrameOval  - 円の輪郭をかく
  641.     PaintOval  - 円を塗る
  642.     EraseOval  - 円の消去
  643.     InvertOval - 円の反転
  644.     FillOval   - 円をパターンで塗る
  645.     FillCOval  - 円を拡張パターンで塗る
  646.  
  647. 【書式】
  648.     ■FrameOval    I-177
  649.     ■PaintOval    I-178
  650.     ■EraseOval    I-178
  651.     ■InvertOval    I-178
  652.     ■FillOval    I-178
  653.     ■FillCOval    V-69
  654.  
  655.     void    FrameOval (const Rect *r);
  656.     void    PaintOval (const Rect *r);
  657.     void    EraseOval (const Rect *r);
  658.     void    InvertOval(const Rect *r);
  659.  
  660.     void    FillOval (const Rect *r, const unsigned char * pat);
  661.     void    FillCOval(const Rect *r, PixPatHandle pp);
  662. /***FrameRoundRect***/ PaintRoundRect EraseRoundRect InvertRoundRect FillRoundRect FillCRoundRect
  663. FrameRoundRect(2q)
  664.  
  665. 【名前】
  666.     FrameRoundRect  - 角の丸い四角形の輪郭をかく
  667.     PaintRoundRect  - 角の丸い四角形を塗る
  668.     EraseRoundRect  - 角の丸い四角形の消去
  669.     InvertRoundRect - 角の丸い四角形の反転
  670.     FillRoundRect   - 角の丸い四角形をパターンで塗る
  671.     FillCRoundRect  - 角の丸い四角形を拡張パターンで塗る
  672.  
  673. 【書式】
  674.     ■FrameRoundRect    I-178
  675.     ■PaintRoundRect    I-179
  676.     ■EraseRoundRect    I-179
  677.     ■InvertRoundRect    I-179
  678.     ■FillRoundRect        I-179
  679.     ■FillCRoundRect    V-69
  680.  
  681. ### RoundRect の説明
  682.  
  683.     void    FrameRoundRect (const Rect *r, short ovalWidth,
  684.                         short ovalHeight);
  685.     void    PaintRoundRect (const Rect *r, short ovalWidth,
  686.                         short ovalHeight);
  687.     void    EraseRoundRect (const Rect *r, short ovalWidth,
  688.                         short ovalHeight);
  689.     void    InvertRoundRect(const Rect *r, short ovalWidth,
  690.                         short ovalHeight);
  691.  
  692.     void    FillRoundRect (const Rect *r, short ovalWidth,
  693.                 short ovalHeight, const unsigned char * pat);
  694.     void    FillCRoundRect(const Rect *r, short ovalWidth,
  695.                 short ovalHeight, PixPatHandle pp);
  696. /***FrameArc***/ PaintArc EraseArc InvertArc FillArc FillCArc
  697. FrameArc(2q)
  698.  
  699. 【名前】
  700.     FrameArc  - 円弧の輪郭を描く
  701.     PaintArc  - 円弧の塗る
  702.     EraseArc  - 円弧の消去
  703.     InvertArc - 円弧の反転
  704.     FillArc   - 円弧を指定パターンで塗る
  705.     FillCArc  - 円弧を指定拡張パターンで塗る
  706.  
  707. 【書式】
  708.     ■FrameArc    I-180
  709.     ■PaintArc    I-180
  710.     ■EraseArc    I-180
  711.     ■InvertArc    I-181
  712.     ■FillArc    I-181
  713.     ■FillCArc    V-69
  714.  
  715. ### Arc の説明
  716.     void    FrameArc (const Rect *r, short startAngle, short arcAngle);
  717.     void    PaintArc (const Rect *r, short startAngle, short arcAngle);
  718.     void    EraseArc (const Rect *r, short startAngle, short arcAngle);
  719.     void    InvertArc(const Rect *r, short startAngle, short arcAngle);
  720.  
  721.     void    FillArc (const Rect *r, short startAngle, short arcAngle,
  722.                         const unsigned char * pat);
  723.     void    FillCArc(const Rect *r, short startAngle, short arcAngle,
  724.                         PixPatHandle pp);
  725. /***Region***/ RgnPtr RgnHandle NewRgn OpenRgn CloseRgn DisposeRgn
  726. Region(2q)
  727.  
  728. 【名前】
  729.     Region     - リージョン data type
  730.     NewRgn     - リージョンメモリの確保
  731.     OpenRgn    - リージョンレコーディングの開始
  732.     CloseRgn   - リージョンレコーディングの終了
  733.     DisposeRgn - リージョンメモリを解放
  734.  
  735. 【書式】
  736.     ■Region    I-142
  737.       Region
  738.         short    rgnSize;
  739.         Rect    rgnBBox;
  740.  
  741.       RgnPtr    Region *
  742.       RgnHandle    Region **
  743.  
  744.     ■NewRgn    I-181
  745.     ■OpenRgn    I-181
  746.     ■CloseRgn    I-182
  747.     ■DisposeRgn    I-182
  748.  
  749.     RgnHandle    NewRgn(void);
  750.     void        OpenRgn(void);
  751.     void        CloseRgn(RgnHandle dstRgn);
  752.     void        DisposeRgn(RgnHandle rgn);
  753. /***BitMapToRegionGlue***/ BitMapToRegion
  754. BitMapToRegionGlue(2q)
  755.  
  756. 【名前】
  757.     BitMapToRegionGlue -
  758.     BitMapToRegion     -
  759.  
  760. 【書式】
  761.     ■BitMapToRegionGlue    ??
  762.     ■BitMapToRegion    VI-17-25
  763.  
  764.     OSErr    BitMapToRegionGlue(RgnHandle region, const BitMap *bMap);
  765.  
  766.     OSErr    BitMapToRegion(RgnHandle region, const BitMap *bMap);
  767. /***CopyRgn***/ SetEmptyRgn SetRectRgn RectRgn OffsetRgn InsetRgn SectRgn UnionRgn DiffRgn XorRgn
  768. CopyRgn(2q)
  769.  
  770. 【名前】
  771.     CopyRgn     - Rgn のコピー
  772.     SetEmptyRgn - Rgn を空にする
  773.     SetRectRgn  - Rgn を指定の四角形に設定
  774.     RectRgn     - Rgn を指定 Rect に設定
  775.     OffsetRgn   -
  776.     InsetRgn    - rgnを内側にdh,dvの2倍ずつ縮小させる
  777.     SectRgn     - Rgn の共通の部分を求める
  778.     UnionRgn    - 2つの Rgn を合わせた Rgn を求める
  779.     DiffRgn     - Rgn の比較
  780.     XorRgn      - Rgn の排他的論理和
  781.  
  782. 【書式】
  783.     ■CopyRgn    I-183
  784.     ■SetEmptyRgn    I-183
  785.     ■SetRectRgn    I-183
  786.     ■RectRgn    I-183
  787.     ■OffsetRgn    I-183
  788.     ■InsetRgn    I-184
  789.     ■SectRgn    I-184
  790.     ■UnionRgn    I-184
  791.     ■DiffRgn    I-184
  792.     ■XorRgn    I-185
  793.  
  794.     void    CopyRgn(RgnHandle srcRgn, RgnHandle dstRgn);
  795.  
  796.     void    SetEmptyRgn(RgnHandle rgn);
  797.  
  798.     void    SetRectRgn(RgnHandle rgn, short left, short top, short right,
  799.                             short bottom);
  800.  
  801.     void    OffsetRgn(RgnHandle rgn, short dh, short dv);
  802.  
  803.     void    RectRgn(RgnHandle rgn, const Rect *r);
  804.  
  805.     void    InsetRgn(RgnHandle rgn, short dh, short dv);
  806.         rgnを内側にdh,dvの2倍ずつ縮小させる
  807.  
  808.     void    SectRgn(RgnHandle srcRgnA, RgnHandle srcRgnB,
  809.             RgnHandle dstRgn);
  810.         srcRgnAとsrcRgnBに共通の部分があるときにはそれを返し、無いな
  811.         ら戻り値としてFALSE
  812.     void    UnionRgn(RgnHandle srcRgnA, RgnHandle srcRgnB,
  813.             RgnHandle dstRgn);
  814.         srcRgnAとsrcRgnBの組合わさった最小のリージョンを返す
  815.  
  816.     void    DiffRgn(RgnHandle srcRgnA, RgnHandle srcRgnB,
  817.             RgnHandle dstRgn);
  818.         srcRgnAにあってsrcRgnBにないところを返す
  819.  
  820.     void    XorRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn);
  821.         srcRgnAとsrcRgnBの排他的論理和を返す
  822. /***RectInRgn***/ EqualRgn EmptyRgn
  823. RectInRgn(2q)
  824.  
  825. 【名前】
  826.     RectInRgn - Rgn と Rect の共通部分があるかチェック
  827.     EqualRgn  - Rgn が同じかチェック
  828.     EmptyRgn  - Rgn が空かチェック
  829.  
  830. 【書式】
  831.     ■RectInRgn    I-185
  832.     ■EqualRgn    I-185
  833.     ■EmptyRgn    I-186
  834.  
  835.     Boolean    RectInRgn(const Rect *r, RgnHandle rgn);
  836.  
  837.     Boolean    EqualRgn(RgnHandle rgnA, RgnHandle rgnB);
  838.  
  839.     Boolean    EmptyRgn(RgnHandle rgn);
  840. /***FrameRgn***/ PaintRgn EraseRgn InvertRgn FillRgn FillCRgn
  841. FrameRgn(2q)
  842.  
  843. 【名前】
  844.     FrameRgn  - Rgn の輪郭を描く
  845.     PaintRgn  - Rgn を塗る
  846.     EraseRgn  - Rgn の消去
  847.     InvertRgn - Rgn の反転
  848.     FillRgn   - Rgn をパターンで塗る
  849.     FillCRgn  - Rgn を拡張パターンで塗る
  850.  
  851. 【書式】
  852.     ■FrameRgn    I-186
  853.     ■PaintRgn    I-186
  854.     ■EraseRgn    I-186
  855.     ■InvertRgn    I-186
  856.     ■FillRgn    I-187
  857.     ■FillCRgn    V-69
  858.  
  859.     void    FrameRgn (RgnHandle rgn);
  860.     void    PaintRgn (RgnHandle rgn);
  861.     void    EraseRgn (RgnHandle rgn);
  862.     void    InvertRgn(RgnHandle rgn);
  863.  
  864.     void    FillRgn (RgnHandle rgn, const unsigned char * pat);
  865.     void    FillCRgn(RgnHandle rgn, PixPatHandle pp);
  866. /***ScrollRect***/
  867. ScrollRect(2q)
  868.  
  869. 【名前】
  870.     ScrollRect - スクロール
  871.  
  872. 【書式】
  873.     ■ScrollRect    I-187
  874.  
  875.     void    ScrollRect(const Rect *r, short dh, short dv,
  876.                 RgnHandle updateRgn);
  877.  
  878.         rのなかに含まれるイメージを dh,dv だけ動かします。スクロールし
  879.         て空いた部分が、updateRgnに返されます
  880. /***CopyBits***/ CopyMask CopyDeepMask
  881. CopyBits(2q)
  882.  
  883. 【名前】
  884.     CopyBits     - BitMap(or PixMap) 間のコピー
  885.     CopyMask     - マスクパターン部分のみの CopyBits
  886.     CopyDeepMask -
  887.  
  888. 【書式】
  889.     ■CopyBits    I-188; V-70; VI-21-5,13
  890.     ■CopyMask    IV-24; V-71
  891.     ■CopyDeepMask    VI-17-15,25
  892.  
  893.     void    CopyBits(const BitMap *srcBits, const BitMap *dstBits,
  894.             const Rect *srcRect, const Rect *dstRect, short mode,
  895.             RgnHandle maskRgn);
  896.         srcBitsからdstBitsへコピーします。
  897.         srcRectを切り取って、dstRectに貼ります。maskRgnの部分にコピー
  898.         されます。modeがパターン転送モードです。
  899.  
  900.     void    CopyMask(const BitMap *srcBits, const BitMap *maskBits,
  901.             const BitMap *dstBits, const Rect *srcRect,
  902.             const Rect *maskRect, const Rect *dstRect);
  903.         srcBitsのsrcRectをMaskBitsのmaskRectに掛かるものだけ、destBi
  904.         tsのdstRectに送る
  905.  
  906.     void    CopyDeepMask(const BitMap *srcBits, const BitMap *maskBits,
  907.             const BitMap *dstBits, const Rect *srcRect,
  908.             const Rect *maskRect, const Rect *dstRect, short mode,
  909.             RgnHandle maskRgn);
  910. /***SeedFill***/ SeedCFill
  911. SeedFill(2q)
  912.  
  913. 【名前】
  914.     SeedFill  - 
  915.     SeedCFill -
  916.  
  917. 【書式】
  918.     ■SeedFill    IV-24
  919.     ■SeedCFill    V-71
  920.  
  921.     void    SeedFill(const void *srcPtr, void *dstPtr, short srcRow,
  922.             short dstRow, short height, short words, short seedH,
  923.             short seedV);
  924.  
  925.         srcPtrの幅wordsと高さheightのイメージをdstPtrに移したとき、左
  926.         肩から縦にseedV、横にseedH行った所の塗りつぶせる範囲を計算させ
  927.         る
  928.  
  929.     void    SeedCFill(const BitMap *srcBits, const BitMap *dstBits,
  930.             const Rect *srcRect, const Rect *dstRect, short seedH,
  931.             short seedV, ColorSearchProcPtr matchProc,
  932.             long matchData);
  933. /***CalcMask***/ CalcCMask
  934. CalcMask(2q)
  935.  
  936. 【名前】
  937.     CalcMask  - 
  938.     CalcCMask -
  939.  
  940. 【書式】
  941.     ■CalcMask    IV-24
  942.     ■CalcCMask    V-72
  943.  
  944.     void    CalcMask(const void *srcPtr, void *dstPtr, short srcRow,
  945.             short dstRow, short height, short words);
  946.  
  947.         srcPtrの幅wordsと高さheightのイメージをdstPtrに移したとき、左
  948.         肩から塗りつぶせる範囲を計算させる
  949.  
  950.     void    CalcCMask(const BitMap *srcBits, const BitMap *dstBits,
  951.             const Rect *srcRect, const Rect *dstRect,
  952.             const RGBColor *seedRGB, ColorSearchProcPtr matchProc,
  953.             long matchData);
  954. /***OpenPicture***/ OpenCPicture ClosePicture PicComment KillPicture DrawPicture GetPicture Picture PicPtr PicHandle OpenCPicParams
  955. OpenPicture(2q)
  956.  
  957. 【名前】
  958.     OpenPicture  - Picture レコーディング開始
  959.     OpenCPicture -
  960.     ClosePicture - ピクチャーのレコーディングを終わります
  961.     PicComment   -
  962.     KillPicture  - myPictureの使っていたメモリを解放します
  963.     DrawPicture  - myPictureをdstRectにはまる様にかきます
  964.     GetPicture   - PICTリソースを読込む
  965.     Picture      - Picture データタイプ
  966.     OpenCPicParams - data type
  967.  
  968. 【書式】
  969.     ■OpenPicture    I-189; V-96
  970.     ■OpenCPicture    VI-17-25
  971.     ■ClosePicture    I-189
  972.     ■PicComment
  973.     ■KillPicture    I-190
  974.     ■DrawPicture    I-190
  975.     ■GetPicture    I-475 (Toolbox Utilities)
  976.  
  977.     ■カラーPICTフォーマット    V-84
  978.     ■カラーPICTフォーマット(拡張)    VI-17-20
  979.  
  980.     PicHandle    OpenPicture(const Rect *picFrame);
  981.     PicHandle    OpenCPicture(const OpenCPicParams *newHeader);
  982.  
  983.         picFrameにぴったりはまるようなピクチャーのメモリを確保、レコ
  984.         ーディングをはじめます
  985.  
  986.  
  987.     void    ClosePicture(void);
  988.         ピクチャーのレコーディングを終わります
  989.  
  990.     void    PicComment(short kind, short dataSize, Handle dataHandle);
  991.  
  992.     void    KillPicture(PicHandle myPicture);
  993.  
  994.     void    DrawPicture(PicHandle myPicture, const Rect *dstRect);
  995.         myPictureをdstRectにはまる様にかきます
  996.  
  997.     PicHandle    GetPicture(short pictureID);
  998.  
  999.  
  1000.     ■Picture    V-86
  1001.       Picture
  1002.         short    picSize;
  1003.         Rect    picFrame;
  1004.       PicPtr    Picture *
  1005.       PicHandle    Picture **
  1006.  
  1007.     ■OpenCPicParams    VI-17-23
  1008.       OpenCPicParams
  1009.         Rect    srcRect;
  1010.         Fixed    hRes;
  1011.         Fixed    vRes;
  1012.         short    version;
  1013.         short    reserved1;
  1014.         long    reserved2;
  1015. /***Polygon***/ PolyPtr PolyHandle OpenPoly ClosePoly KillPoly OffsetPoly
  1016. Polygon(2q)
  1017.  
  1018. 【名前】
  1019.     Polygon    - ポリゴン(多角形)データタイプ
  1020.     OpenPoly   - ポリゴンメモリを新しく確保して、レコーディング開始
  1021.     ClosePoly  - ポリゴンレコーディングを終え、記録
  1022.     KillPoly   - ポリゴンを消します
  1023.     OffsetPoly -
  1024.  
  1025. 【書式】
  1026.     ■Polygon    I-159
  1027.  
  1028.       Polygon
  1029.         short    polySize;
  1030.         Rect    polyBBox;
  1031.         Point    polyPoints[1];
  1032.  
  1033.       PolyPtr    Polygon *
  1034.       PolyHandle    Polygon **
  1035.  
  1036.  
  1037.     ■OpenPoly    I-190
  1038.     ■ClosePoly    I-190
  1039.     ■KillPoly    I-191
  1040.     ■OffsetPoly    I-191
  1041.  
  1042.     PolyHandle    OpenPoly(void);
  1043.  
  1044.     void    ClosePoly(void);
  1045.  
  1046.     void    KillPoly(PolyHandle poly);
  1047.  
  1048.     void    OffsetPoly(PolyHandle poly, short dh, short dv);
  1049. /***FramePoly***/ PaintPoly ErasePoly InvertPoly FillPoly FillCPoly
  1050. FramePoly(2q)
  1051.  
  1052. 【名前】
  1053.     FramePoly  - ポリゴンの輪郭をかく
  1054.     PaintPoly  - ポリゴンを塗る
  1055.     ErasePoly  - ポリゴンの消去
  1056.     InvertPoly - ポリゴンの反転
  1057.     FillPoly   - ポリゴンを指定パターンで塗る
  1058.     FillCPoly  - ポリゴンを指定カラーパターンで塗る
  1059.  
  1060. 【書式】
  1061.     ■FramePoly    I-192
  1062.     ■PaintPoly    I-192
  1063.     ■ErasePoly    I-192
  1064.     ■InvertPoly    I-192
  1065.     ■FillPoly    I-192
  1066.     ■FillCPoly    V-69
  1067.  
  1068. ### Polygon の説明
  1069.     void    FramePoly (PolyHandle poly);
  1070.     void    PaintPoly (PolyHandle poly);
  1071.     void    ErasePoly (PolyHandle poly);
  1072.     void    InvertPoly(PolyHandle poly);
  1073.  
  1074.     void    FillPoly (PolyHandle poly, const unsigned char * pat);
  1075.     void    FillCPoly(PolyHandle poly, PixPatHandle pp);
  1076. /***Point***/ SetPt AddPt SubPt DeltaPoint EqualPt LocalToGlobal GlobalToLocal ScalePt
  1077. Point(2q)
  1078.  
  1079. 【名前】
  1080.     Point         - Point data type
  1081.     SetPt         - Point に値設定
  1082.     AddPt         - Point の加算
  1083.     SubPt         - Point の減算
  1084.     DeltaPoint    - Point の差を計算
  1085.     EqualPt       - Point が同じかチェック
  1086.     LocalToGlobal - ローカルからグローバルへ座標変換
  1087.     GlobalToLocal - グローバルからローカルへ座標変換
  1088.     ScalePt       - 対する高さの比率をptに返す
  1089.  
  1090. 【書式】
  1091.     ■Point
  1092.       Point
  1093.         short    v;        // vertical    (Y)
  1094.         short    h;        // horizontal    (X)
  1095.  
  1096.     ■SetPt        I-193
  1097.     ■AddPt        I-193
  1098.     ■SubPt        I-193
  1099.     ■DeltaPoint    I-475 (Toolbox Utilities)
  1100.     ■EqualPt    I-193
  1101.     ■LocalToGlobal    I-193
  1102.     ■GlobalToLocal    I-193
  1103.     ■ScalePt    I-195
  1104.  
  1105.     void    SetPt(Point *pt, short h, short v);
  1106.  
  1107.     void    AddPt(Point src, Point *dst);
  1108.     void    SubPt(Point src, Point *dst);
  1109.  
  1110.     long    DeltaPoint(Point ptA, Point ptB);
  1111.             戻り値    HiWord    ptA.v - ptB.v
  1112.                 LoWord    ptA.h - ptB.h
  1113.  
  1114.     Boolean    EqualPt (Point pt1, Point pt2);
  1115.  
  1116.     void    LocalToGlobal(Point *pt);
  1117.     void    GlobalToLocal(Point *pt);
  1118. ### グローバル座標とは ?
  1119.  
  1120.     void    ScalePt(Point *pt, const Rect *srcRect, const Rect *dstRect);
  1121.             srcRectのdstRectに対する高さの比率をptに返す
  1122. /***PtInRect***/ PtInRgn Pt2Rect PtToAngle
  1123. PtInRect(2q)
  1124.  
  1125. 【名前】
  1126.     PtInRect   - Point が Rect の中にあるかどうかチェック
  1127.     PtInRgn    - Point が Rgn の中にあるかどうかチェック
  1128.     Pt2Rect    - Point 2つから Rect を作成
  1129.     PtToAngle  - Point の Rectの中心から見た角度を計算
  1130.  
  1131. 【書式】
  1132.     ■PtInRect    I-175
  1133.     ■PtInRgn    I-185
  1134.     ■Pt2Rect    I-175
  1135.     ■PtToAngle    I-175
  1136.  
  1137.     Boolean    PtInRect(Point pt, const Rect *r);
  1138.     Boolean    PtInRgn (Point pt, RgnHandle rgn);
  1139.  
  1140.     void    Pt2Rect(Point pt1, Point pt2, Rect *dstRect);
  1141.  
  1142.     void    PtToAngle(const Rect *r, Point pt, short *angle);
  1143. /***Random***/ StuffHex
  1144. Random(2q)
  1145.  
  1146. 【名前】
  1147.     Random   -
  1148.     StuffHex - 
  1149.  
  1150. 【書式】
  1151.     ■Random    I-194
  1152.     ■StuffHex    I-195
  1153.  
  1154.     short    Random(void);
  1155.  
  1156.     void    StuffHex(void *thingPtr, ConstStr255Param s);
  1157.  
  1158.         thingPtrの位置から、を16進数としてメモリに納めておく
  1159. /***GetPixel***/ SetCPixel GetCPixel
  1160. GetPixel(2q)
  1161.  
  1162. 【名前】
  1163.     GetPixel  - 指定位置が黒ならばTRUEを返す
  1164.     SetCPixel -
  1165.     GetCPixel -
  1166.  
  1167. 【書式】
  1168.     ■GetPixel    I-195
  1169.     ■SetCPixel    V-70
  1170.     ■GetCPixel    V-69
  1171.  
  1172.     Boolean    GetPixel(short h, short v);
  1173.  
  1174.     void    SetCPixel(short h, short v, const RGBColor *cPix);
  1175.     void    GetCPixel(short h, short v, RGBColor *cPix);
  1176. /***MapPt***/ MapRect MapRgn MapPoly
  1177. MapPt(2q)
  1178.  
  1179. 【名前】
  1180.     MapPt   - 
  1181.     MapRect - 
  1182.     MapRgn  - 
  1183.     MapPoly - 
  1184.  
  1185. 【書式】
  1186.     ■MapPt        I-196
  1187.     ■MapRect    I-196
  1188.     ■MapPoly    I-197
  1189.     ■MapRgn    I-196
  1190.  
  1191.     void    MapPt(Point *pt, const Rect *srcRect, const Rect *dstRect);
  1192.         ptのsrcRectの左肩までの距離をsrcRectとdstRectの比率によってか
  1193.         える
  1194.  
  1195.     void    MapRect(Rect *r, const Rect *srcRect, const Rect *dstRect);
  1196.         rをsrcRectとの組み合わせの比率にしたがってdestRectのなかに組
  1197.         み替える
  1198.  
  1199.     void    MapRgn(RgnHandle rgn, const Rect *srcRect,
  1200.             const Rect *dstRect);
  1201.         rgnをsrcRectとの組み合わせの比率にしたがってdestRectのなかに
  1202.         組み替える
  1203.  
  1204.     void    MapPoly(PolyHandle poly, const Rect *srcRect,
  1205.             const Rect *dstRect);
  1206.         poryをsrcRectとの組み合わせの比率にしたがってdestRectのなかに
  1207.         組み替える
  1208. /***ScreenRes***/
  1209. ScreenRes(2q)
  1210.  
  1211. 【名前】
  1212.     ScreenRes - 画面の解像度の取得(dot/inch)
  1213.  
  1214. 【書式】
  1215.     ■ScreenRes    I-473 (Toolbox Utilities)
  1216.  
  1217.     void    ScreenRes(short *scrnHRes, short *scrnVRes);
  1218. /***SetStdProcs***/ SetStdCProcs StdText StdLine StdRect StdRRect StdOval StdArc StdPoly StdRgn StdBits StdComment StdTxMeas StdGetPic StdPutPic
  1219. SetStdProcs(2q)
  1220.  
  1221. 【名前】
  1222.     SetStdProcs  - 低水準ルーチン
  1223.     SetStdCProcs -
  1224.     StdText    -
  1225.     StdLine       -
  1226.     StdRect    -
  1227.     StdRRect   -
  1228.     StdOval    -
  1229.     StdArc     -
  1230.     StdPoly    -
  1231.     StdRgn     -
  1232.     StdBits    -
  1233.     StdComment -
  1234.     StdTxMeas  -
  1235.     StdGetPic  -
  1236.     StdPutPic  -
  1237.  
  1238. 【書式】
  1239.     ■SetStdProcs    I-198
  1240.     ■SetStdCProcs    V-77
  1241.     ■StdText    I-198
  1242.     ■StdLine    I-198
  1243.  
  1244.     void    SetStdProcs (QDProcs *procs);
  1245.     void    SetStdCProcs(CQDProcs *procs);
  1246.  
  1247.     void    StdText(short count, const void *textAddr, Point numer,
  1248.                         Point denom);
  1249.     void    StdLine(Point newPt);
  1250.     void    StdRect(GrafVerb verb, const Rect *r);
  1251.     void    StdRRect(GrafVerb verb, const Rect *r, short ovalWidth,
  1252.                         short ovalHeight);
  1253.     void    StdOval(GrafVerb verb, const Rect *r);
  1254.     void    StdArc(GrafVerb verb, const Rect *r, short startAngle,
  1255.                         short arcAngle);
  1256.     void    StdPoly(GrafVerb verb, PolyHandle poly);
  1257.     void    StdRgn(GrafVerb verb, RgnHandle rgn);
  1258.     void    StdBits(const BitMap *srcBits, const Rect *srcRect,
  1259.             const Rect *dstRect, short mode, RgnHandle maskRgn);
  1260.     void    StdComment(short kind, short dataSize, Handle dataHandle);
  1261.     short    StdTxMeas(short byteCount, const void *textAddr, Point *numer,
  1262.             Point *denom, FontInfo *info);
  1263.     void    StdGetPic(void *dataPtr, short byteCount);
  1264.     void    StdPutPic(const void *dataPtr, short byteCount);
  1265. /***NewPixMap***/ DisposPixMap CopyPixMap
  1266. NewPixMap(2q)
  1267.  
  1268. 【名前】
  1269.     NewPixMap    -
  1270.     DisposPixMap -
  1271.     CopyPixMap   -
  1272.  
  1273. 【書式】
  1274.     ■NewPixMap    V-70
  1275.     ■DisposPixMap    V-70
  1276.     ■CopyPixMap    V-70
  1277.  
  1278.     PixMapHandle    NewPixMap(void);
  1279.  
  1280.     void    DisposPixMap(PixMapHandle pm);
  1281.  
  1282.     void    CopyPixMap(PixMapHandle srcPM, PixMapHandle dstPM);
  1283. /***OpColor***/ HiliteColor
  1284. OpColor(2q)
  1285.  
  1286. 【名前】
  1287.     OpColor     -
  1288.     HiliteColor -
  1289.  
  1290. 【書式】
  1291.     ■OpColor    V-77
  1292.     ■HiliteColor    V-77
  1293.  
  1294.     void    OpColor(const RGBColor *color);
  1295.  
  1296.     void    HiliteColor(const RGBColor *color);
  1297. /***GetCTable***/ DisposCTable
  1298. GetCTable(2q)
  1299.  
  1300. 【名前】
  1301.     GetCTable    -
  1302.     DisposCTable    -
  1303.  
  1304. 【書式】
  1305.     ■GetCTable    V-77
  1306.     ■DisposCTable    V-78
  1307.  
  1308.     CTabHandle    GetCTable(short ctID);
  1309.  
  1310.     void    DisposCTable(CTabHandle cTable);
  1311. /***GetIcon***/ PlotIcon GetCIcon PlotCIcon DisposCIcon CIcon CIconPtr CIconHandle
  1312. GetIcon(2q)
  1313.  
  1314. 【名前】
  1315.     GetIcon     - アイコン('ICON')リソースの読み込み
  1316.     PlotIcon    - アイコンの表示
  1317.     GetCIcon    - カラーアイコン('cicn')リソースの読み込み
  1318.     DisposCIcon - カラーアイコンの破棄
  1319.     PlotCIcon   - カラーアイコンの表示
  1320.     CIcon       - カラーアイコン data type
  1321.  
  1322. 【書式】
  1323.     ■GetIcon    I-473 (Toolbox Utilities)
  1324.     ■PlotIcon    I-473 (Toolbox Utilities)
  1325.     ■GetCIcon    V-76
  1326.     ■DisposCIcon    V-76
  1327.     ■PlotCIcon    V-76
  1328.  
  1329.     Handle    GetIcon(short iconID);
  1330.  
  1331.     void    PlotIcon(const Rect *theRect, Handle theIcon);
  1332.         アイコンを theRect の位置と大きさに表示する
  1333.         (CopyBits() を使用している)
  1334.  
  1335.     CIconHandle    GetCIcon(short iconID);
  1336.  
  1337.     void    PlotCIcon(const Rect *theRect, CIconHandle theIcon);
  1338.  
  1339.     void    DisposCIcon(CIconHandle theIcon);
  1340.  
  1341.     ■CIcon    V-64
  1342.       CIcon
  1343.         PixMap    iconPMap;
  1344.         BitMap    iconMask;
  1345.         BitMap    iconBMap;
  1346.         Handle    iconData;
  1347.         short    iconMaskData[1];
  1348.       CIconPtr    CIcon *
  1349.       CIconHandle    CIcon **
  1350. /***Color2Index***/ Index2Color InvertColor RealColor
  1351. Color2Index(2q)
  1352.  
  1353. 【名前】
  1354.     Color2Index    -
  1355.     Index2Color    -
  1356.     InvertColor    -
  1357.     RealColor    -
  1358.  
  1359. 【書式】
  1360.     ■Color2Index    V-141
  1361.     ■Index2Color    V-141
  1362.     ■InvertColor    V-141
  1363.     ■RealColor    V-141
  1364.  
  1365.     long    Color2Index(const RGBColor *myColor);
  1366.  
  1367.     void    Index2Color(long index, RGBColor *aColor);
  1368.  
  1369.     void    InvertColor(RGBColor *myColor);
  1370.  
  1371.     Boolean    RealColor(const RGBColor *color);
  1372. /***GetSubTable***/ MakeITable
  1373. GetSubTable(2q)
  1374.  
  1375. 【名前】
  1376.     GetSubTable    -
  1377.     MakeITable    -
  1378.  
  1379. 【書式】
  1380.     ■GetSubTable    V-142
  1381.     ■MakeITable    V-142
  1382.  
  1383.     void    GetSubTable(CTabHandle myColors, short iTabRes,
  1384.             CTabHandle targetTbl);
  1385.  
  1386.     void    MakeITable(CTabHandle cTabH, ITabHandle iTabH, short res);
  1387. /***AddSearch***/ AddComp DelSearch DelComp
  1388. AddSearch(2q)
  1389.  
  1390. 【名前】
  1391.     AddSearch -
  1392.     AddComp   -
  1393.     DelSearch -
  1394.     DelComp   -
  1395.  
  1396. 【書式】
  1397.     ■AddSearch    V-147
  1398.     ■AddComp    V-147
  1399.     ■DelSearch    V-147
  1400.     ■DelComp    V-147
  1401.  
  1402.     void    AddSearch(ColorSearchProcPtr searchProc);
  1403.  
  1404.     void    AddComp(ColorComplementProcPtr compProc);
  1405.  
  1406.     void    DelSearch(ColorSearchProcPtr searchProc);
  1407.  
  1408.     void    DelComp(ColorComplementProcPtr compProc);
  1409. /***SetClientID***/
  1410. SetClientID(2q)
  1411.  
  1412. 【名前】
  1413.     SetClientID    -
  1414.  
  1415. 【書式】
  1416.     ■SetClientID    V-147
  1417.  
  1418.     void    SetClientID(short id);
  1419. /***ProtectEntry***/ ReserveEntry SetEntries SaveEntries RestoreEntries ReqListRec
  1420. ProtectEntry(2q)
  1421.  
  1422. 【名前】
  1423.     ProtectEntry   -
  1424.     ReserveEntry   -
  1425.     SetEntries     -
  1426.     SaveEntries    -
  1427.     RestoreEntries -
  1428.     ReqListRec     - data type
  1429.  
  1430. 【書式】
  1431.     ■ProtectEntry    V-143
  1432.     ■ReserveEntry    V-143
  1433.     ■SetEntries    V-143
  1434.     ■SaveEntries    V-144
  1435.     ■RestoreEntries    V-144
  1436.  
  1437.     void    ProtectEntry(short index, Boolean protect);
  1438.  
  1439.     void    ReserveEntry(short index, Boolean reserve);
  1440.  
  1441.     void    SetEntries(short start, short count, CSpecArray aTable);
  1442.  
  1443.     void    SaveEntries(CTabHandle srcTable, CTabHandle resultTable,
  1444.             ReqListRec *selection);
  1445.  
  1446.     void    RestoreEntries(CTabHandle srcTable, CTabHandle dstTable,
  1447.             ReqListRec *selection);
  1448.  
  1449.     ■ReqListRec    V-144
  1450.       ReqListRec
  1451.         short    reqLSize;
  1452.         short    reqLData[1];
  1453. /***QDError***/ QDDone
  1454. QDError(2q)
  1455.  
  1456. 【名前】
  1457.     QDError    - QuickDraw のエラーチェック
  1458.     QDDone    - 描画完了の確認
  1459.  
  1460. 【書式】
  1461.     ■QDError    V-145; VI-17-28
  1462.     ■QDDone    VI-17-26
  1463.  
  1464.     short    QDError(void);
  1465.  
  1466.     Boolean    QDDone(GrafPtr port); 
  1467. /***GetGray***/
  1468. GetGray(2c)
  1469.  
  1470. 【名前】
  1471.     GetGray -
  1472.  
  1473. 【書式】
  1474.     ■GetGray    VI-17-27
  1475.  
  1476.     Boolean    GetGray(GDHandle device, const RGBColor *backGround,
  1477.             RGBColor *foreGround);
  1478. /***GetMaskTable***/
  1479. GetMaskTable(2q)
  1480.  
  1481. 【名前】
  1482.     GetMaskTable    -
  1483.  
  1484. 【書式】
  1485.     ■GetMaskTable    IV-25
  1486.  
  1487.     Ptr    GetMaskTable(void);
  1488. /***CTabChanged***/ PixPatChanged PortChanged GDeviceChanged
  1489. CTabChanged(2q)
  1490.  
  1491. 【名前】
  1492.     CTabChanged    - 
  1493.     PixPatChanged    - 
  1494.     PortChanged    - 
  1495.     GDeviceChanged    - 
  1496.  
  1497. 【書式】
  1498.     ■CTabChanged        VI-17-26
  1499.     ■PixPatChanged        VI-17-27
  1500.     ■PortChanged        VI-17-27
  1501.     ■GDeviceChanged    VI-17-27
  1502.  
  1503.     void    CTabChanged(CTabHandle ctab); 
  1504.  
  1505.     void    PixPatChanged(PixPatHandle ppat); 
  1506.  
  1507.     void    PortChanged(GrafPtr port); 
  1508.  
  1509.     void    GDeviceChanged(GDHandle gdh); 
  1510. /***GetCTSeed***/
  1511. GetCTSeed(2q)
  1512.  
  1513. 【名前】
  1514.     GetCTSeed -
  1515.  
  1516. 【書式】
  1517.     ■GetCTSeed    V-143
  1518.  
  1519.     long    GetCTSeed(void);
  1520. /***NewGWorld***/ DisposeGWorld
  1521. NewGWorld(2q)
  1522.  
  1523. 【名前】
  1524.     NewGWorld     - GWorld の作成
  1525.     DisposeGWorld - GWorld の破棄
  1526.  
  1527. 【書式】
  1528.     ■NewGWorld    VI-21-12
  1529.     ■DisposeGWorld    VI-21-19
  1530.  
  1531.     QDErr    NewGWorld(GWorldPtr *offscreenGWorld, short PixelDepth, 
  1532.             const Rect *boundsRect, CTabHandle cTable, 
  1533.             GDHandle aGDevice, GWorldFlags flags); 
  1534.  
  1535.     void    DisposeGWorld(GWorldPtr offscreenGWorld); 
  1536. /***LockPixels***/ UnlockPixels AllowPurgePixels NoPurgePixels GetPixelsState SetPixelsState GetPixBaseAddr PixMap32Bit
  1537. LockPixels(2q)
  1538.  
  1539. 【名前】
  1540.     LockPixels       - オフスクリーンバッファの Lock
  1541.     UnlockPixels     - オフスクリーンバッファの Unlock
  1542.     AllowPurgePixels - オフスクリーンを Purge可能に
  1543.     NoPurgePixels    - オフスクリーンを Purge不可能に
  1544.     GetPixelsState   - オフスクリーンの状態取得
  1545.     SetPixelsState   - オフスクリーンの状態設定
  1546.     GetPixBaseAddr   - オフスクリーンバッファのアドレス取得
  1547.     PixMap32Bit      - バッファアクセスの 32bitsアドレス必要チェック
  1548.  
  1549. 【書式】
  1550.     ■VI-21-15
  1551.  
  1552.     Boolean    LockPixels(PixMapHandle pm); 
  1553.     void    UnlockPixels(PixMapHandle pm); 
  1554.  
  1555.     void    AllowPurgePixels(PixMapHandle pm); 
  1556.     void    NoPurgePixels(PixMapHandle pm); 
  1557.  
  1558.     GWorldFlags    GetPixelsState(PixMapHandle pm); 
  1559.     void    SetPixelsState(PixMapHandle pm, GWorldFlags state); 
  1560.  
  1561.     Ptr    GetPixBaseAddr(PixMapHandle pm); 
  1562.  
  1563.     Boolean    PixMap32Bit(PixMapHandle pmHandle); 
  1564. /***UpdateGWorld***/ SetGWorld GetGWorld GetGWorldDevice GetGWorldPixMap
  1565. UpdateGWorld(2q)
  1566.  
  1567. 【名前】
  1568.     UpdateGWorld    - 
  1569.     SetGWorld       - 
  1570.     GetGWorld       - 
  1571.     GetGWorldDevice - 
  1572.     GetGWorldPixMap - 
  1573.  
  1574. 【書式】
  1575.     ■VI-21-15
  1576.  
  1577.     GWorldFlags    UpdateGWorld(GWorldPtr *offscreenGWorld, 
  1578.                 short pixelDepth, const Rect *boundsRect, 
  1579.                 CTabHandle cTable, GDHandle aGDevice, 
  1580.                 GWorldFlags flags); 
  1581.  
  1582.     void    SetGWorld(CGrafPtr port, GDHandle gdh); 
  1583.     void    GetGWorld(CGrafPtr *port, GDHandle *gdh); 
  1584.  
  1585.     GDHandle    GetGWorldDevice(GWorldPtr offscreenGWorld); 
  1586.  
  1587.     PixMapHandle    GetGWorldPixMap(GWorldPtr offscreenGWorld); 
  1588. /***NewScreenBuffer***/ NewTempScreenBuffer DisposeScreenBuffer
  1589. NewScreenBuffer(2q)
  1590.  
  1591. 【名前】
  1592.     NewScreenBuffer     - ローレベル Graphics Device ルーチン
  1593.     NewTempScreenBuffer -
  1594.     DisposeScreenBuffer -
  1595.  
  1596. 【書式】
  1597.     ■VI-21-15
  1598.  
  1599.     QDErr    NewScreenBuffer(const Rect *globalRect, Boolean purgeable, 
  1600.             GDHandle *gdh, PixMapHandle *offscreenPixMap); 
  1601.     QDErr    NewTempScreenBuffer(const Rect *globalRect, Boolean purgeable, 
  1602.             GDHandle *gdh, PixMapHandle *offscreenPixMap); 
  1603.  
  1604.     void    DisposeScreenBuffer(PixMapHandle offscreenPixMap); 
  1605. /***NewGDevice***/ InitGDevice DisposGDevice GetGDevice GetDeviceList GetMainDevice GetMaxDevice GetNextDevice SetGDevice SetDeviceAttribute TestDeviceAttribute DeviceLoop
  1606. NewGDevice(2q)
  1607.  
  1608. 【名前】
  1609.     NewGDevice          -
  1610.     InitGDevice         -
  1611.     DisposGDevice       -
  1612.     GetGDevice          -
  1613.     GetDeviceList       -
  1614.     GetMainDevice       -
  1615.     GetMaxDevice        -
  1616.     GetNextDevice       -
  1617.     SetGDevice          -
  1618.     SetDeviceAttribute  -
  1619.     TestDeviceAttribute -
  1620.     DeviceLoop          -
  1621.  
  1622. 【書式】
  1623.     ■NewGDevice        V-122; VI-21-20
  1624.     ■InitGDevice        V-123; VI-21-21
  1625.     ■DisposGDevice        V-123; VI-21-22
  1626.     ■GetGDevice        V-123; VI-21-21
  1627.     ■GetDeviceList        V-124; VI-21-21
  1628.     ■GetMainDevice        V-124; VI-21-22
  1629.     ■GetMaxDevice        V-125; VI-21-22
  1630.     ■GetNextDevice        V-124; VI-21-22
  1631.     ■SetGDevice        V-123; VI-21-22
  1632.     ■SetDeviceAttribute    V-124; VI-21-22
  1633.     ■TestDeviceAttribute    V-124; VI-21-22
  1634.     ■DeviceLoop        VI-21-23
  1635.  
  1636.     #include <Palettes.h>
  1637.  
  1638.     GDHandle    NewGDevice(short refNum, long mode);
  1639.  
  1640.     void    InitGDevice(short qdRefNum, long mode, GDHandle gdh);
  1641.  
  1642.     void    DisposGDevice(GDHandle gdh);
  1643.  
  1644.     GDHandle    GetGDevice(void);
  1645.     GDHandle    GetDeviceList(void);
  1646.     GDHandle    GetMainDevice(void);
  1647.     GDHandle    GetMaxDevice(const Rect *globalRect);
  1648.     GDHandle    GetNextDevice(GDHandle curDevice);
  1649.  
  1650.     void    SetGDevice(GDHandle gd);
  1651.  
  1652.     void    SetDeviceAttribute(GDHandle gdh, short attribute,
  1653.                             Boolean value);
  1654.     Boolean    TestDeviceAttribute(GDHandle gdh, short attribute);
  1655.  
  1656.     void    DeviceLoop(RgnHandle drawingRgn,
  1657.             DeviceLoopDrawingProcPtr drawingProc, long userData,
  1658.             DeviceLoopFlags flags);
  1659. /***HasDepth***/ SetDepth 
  1660. HasDepth(2q)
  1661.  
  1662. 【名前】
  1663.     HasDepth - 画面デバイスサポート状況のチェック
  1664.     SetDepth - 画面デバイスのモード設定
  1665.  
  1666. 【書式】
  1667.     ■HasDepth        VI-21-23
  1668.     ■SetDepth        VI-21-23
  1669.  
  1670.     #include <Palettes.h>
  1671.  
  1672.     short    HasDepth(GDHandle gd, short depth, short whichFlags,
  1673.                                 short flags);
  1674.         戻り値:    0以外    サポートしている
  1675.             0    サポートしていない
  1676.         depth:        ビット深さ(1, 2, 3, 4, 8, 16, 32)
  1677.  
  1678.     OSErr    SetDepth(GDHandle gd, short depth, short whichFlags,
  1679.                                 short flags);
  1680.             depth:    HasDepth() の戻り値を渡す
  1681.  
  1682.     ■共通の引き数
  1683.         whichFlags:    flags で有効とするないようをビットで指定
  1684.                 #0(0x0001)    モノクロ(0), カラー(1) の設定
  1685.         flags:        設定値
  1686.  
  1687. 【サンプル】
  1688.     1. メインデバイスを 256カラーに設定する
  1689.     #include <Palettes.h>
  1690.  
  1691.     OSErr    err;
  1692.     short    depth;
  1693.  
  1694.     if((depth = HasDepth(GetMainDevice(),
  1695.                 8, 0x0001, 0x0001/*color*/)) != 0){
  1696.         err = SetDepth(GetMainDevice(), depth, 0x0001, 0x0001);
  1697.         if(err != noErr)
  1698.             // SetDepth() のエラー
  1699.     }else
  1700.         // このモードをサポートしていない
  1701. /***OffscreenVersion***/
  1702. OffscreenVersion(2q)
  1703.  
  1704. 【名前】
  1705.     OffscreenVersion    - 
  1706.  
  1707. 【書式】
  1708.     long    OffscreenVersion(void); 
  1709. #
  1710. #
  1711. #
  1712. /***GrafVerb***/ PixelType Bits16 QDByte QDPtr QDHandle QDErr DeviceLoopFlags
  1713. GrafVerb(2q)
  1714.  
  1715. 【名前】
  1716.     GrafVerb  - QuickDraw data type (unsigned char)
  1717.     PixelType - data type (unsigned char)
  1718.     Bits16    - data type (short [16])
  1719.     QDByte    - data type (char)
  1720.     QDErr     - data type (short)
  1721.     DeviceLoopFlags - data type (unsigned long)
  1722. 【形式】
  1723.     GrafVerb    I-198
  1724.         GrafVerb    unsigned char
  1725.  
  1726.     PixelType    ??
  1727.         PixelType    unsigned char
  1728.  
  1729.     Bits16        I-146
  1730.         Bits16    short    [16]
  1731.  
  1732.     QDByte        ??
  1733.         QDByte        char
  1734.         QDPtr        char *
  1735.         QDHandle    char **
  1736.  
  1737.     QDErr        ??
  1738.         QDErr    short
  1739.  
  1740.     DeviceLoopFlags    ??
  1741.         DeviceLoopFlags    unsigned long
  1742. /***GWorldFlags***/ GWorldPtr
  1743. GWorldFlags(2q)
  1744.  
  1745. 【名前】
  1746.     GWorldFlags - data type (unsigned long)
  1747.     GWorldPtr   - data type (CGrafPtr)
  1748.  
  1749. 【形式】
  1750.     ■GWorldFlags    VI-21-5
  1751.     ■GWorldPtr    VI-21-4
  1752.         GWorldFlags    ulong
  1753.         GWorldPtr    CGrafPtr
  1754.  
  1755.      0 pixPurge        pixPurgeBit
  1756.      1 noNewDevice        noNewDeviceBit
  1757.      2 useTempMem        useTempMemBit
  1758.      3 keepLocal        keepLocalBit
  1759.      6 pixelsPurgeable    pixelsPurgeableBit
  1760.      7 pixelsLocked        pixelsLockedBit
  1761.     16 mapPix        mapPixBit
  1762.     17 newDepth        newDepthBit
  1763.     18 alignPix        alignPixBit
  1764.     19 newRowBytes        newRowBytesBit
  1765.     20 reallocPix        reallocPixBit
  1766.     28 clipPix        clipPixBit
  1767.     29 stretchPix        stretchPixBit
  1768.     30 ditherPix        ditherPixBit
  1769.     31 gwFlagErr        gwFlagErrBit
  1770. /***BitMap***/ BitMapPtr BitMapHandle PixMap PixMapPtr PixMapHandle
  1771. BitMap(2q)
  1772.  
  1773. 【名前】
  1774.     BitMap - ビットマップ data type
  1775.     PixMap - ピクセルマップ data type
  1776.  
  1777. 【形式】
  1778.     ■BitMap    I-144
  1779.       BitMap
  1780.         Ptr    baseAddr;
  1781.         short    rowBytes;
  1782.         Rect    bounds;
  1783.       BitMapPtr    BitMap *
  1784.       BitMapHandle    BitMap **
  1785.  
  1786.     ■PixMap    V-52
  1787.       PixMap
  1788.         Ptr    baseAddr;
  1789.         short    rowBytes;
  1790.                     Bit #15    -- on    PixMap であることを示す
  1791.                     Bit #14    -- off
  1792.         Rect    bounds;
  1793.         short    pmVersion;    0
  1794.                     4
  1795.                     2 (?? Quadra 950 でそうなっていた)
  1796.         short    packType;    現在 0 固定
  1797.         long    packSize;    現在 0 固定
  1798.         Fixed    hRes;
  1799.         Fixed    vRes;
  1800.         short    pixelType;    0  chunky
  1801.                     1  chunkyPlanar
  1802.                     2  planar
  1803.                     16 RGBDirect [System 7以降]
  1804.         short    pixelSize;
  1805.         short    cmpCount;
  1806.         short    cmpSize;
  1807.         long    planeBytes;    ??
  1808.                         pixelType = chunky --> 0L
  1809.         CTabHandle pmTable;    カラーテーブルハンドル
  1810.         long    pmReserved;    現在 0 固定
  1811.       PixMapPtr    PixMap *
  1812.       PixMapHandle    PixMap **
  1813. /***GrafPort***/ GrafPtr WindowPtr CGrafPort CGrafPtr CWindowPtr
  1814. GrafPort(2q)
  1815.  
  1816. 【名前】
  1817.     GrafPort  - オリジナルグラフポート data type
  1818.     CGrafPort - カラーグラフポート data type
  1819.  
  1820. 【形式】
  1821.     GrafPort と CGrafPort の識別方法
  1822.         ((GrafPort*)port)->portBits.rowBytes
  1823.         ((CGrafPort*)port)->portVersion
  1824.         上記のどちらか(メモリー上は同じ)の上位 2bits
  1825.             OFF    GrafPort
  1826.             ON    CGrafPort
  1827.  
  1828.     ■GrafPort    I-148
  1829.       GrafPort
  1830.         short        device;        o
  1831.         BitMap        portBits;
  1832.         Rect        portRect;
  1833.         RgnHandle    visRgn;        o
  1834.         RgnHandle    clipRgn;    o
  1835.         Pattern        bkPat;
  1836.         Pattern        fillPat;
  1837.         Point        pnLoc;        o
  1838.         Point        pnSize;        o
  1839.         short        pnMode;        o
  1840.         Pattern        pnPat;
  1841.         short        pnVis;        o
  1842.         short        txFont;        o
  1843.         Style        txFace;        o
  1844.         char        filler;        o
  1845.         short        txMode;        o
  1846.         short        txSize;        o
  1847.         Fixed        spExtra;    o
  1848.         long        fgColor;    o
  1849.         long        bkColor;    o
  1850.         short        colrBit;    o
  1851.         short        patStretch;    o
  1852.         Handle        picSave;    o
  1853.         Handle        rgnSave;    o
  1854.         Handle        polySave;    o
  1855.         QDProcsPtr    grafProcs;    .
  1856.       GrafPtr    GrafPort *
  1857.       WindowPtr    GrafPtr
  1858.  
  1859.     ■CGrafPort    V-49
  1860.       CGrafPort                o = GrafPortと同じ
  1861.                         . = ほぼ同じ意味
  1862.         short        device;        o
  1863.         PixMapHandle    portPixMap;
  1864.         short        portVersion;
  1865.         Handle        grafVars;
  1866.         short        chExtra;
  1867.         short        pnLocHFrac;
  1868.         Rect        portRect;    o
  1869.         RgnHandle    visRgn;        o
  1870.         RgnHandle    clipRgn;    o
  1871.         PixPatHandle    bkPixPat;
  1872.         RGBColor    rgbFgColor;
  1873.         RGBColor    rgbBkColor;
  1874.         Point        pnLoc;        o
  1875.         Point        pnSize;        o
  1876.         short        pnMode;        o
  1877.         PixPatHandle    pnPixPat;
  1878.         PixPatHandle    fillPixPat;
  1879.         short        pnVis;        o
  1880.         short        txFont;        o
  1881.         Style        txFace;        o
  1882.         char        filler;        o
  1883.         short        txMode;        o
  1884.         short        txSize;        o
  1885.         Fixed        spExtra;    o
  1886.         long        fgColor;    o
  1887.         long        bkColor;    o
  1888.         short        colrBit;    o
  1889.         short        patStretch;    o
  1890.         Handle        picSave;    o
  1891.         Handle        rgnSave;    o
  1892.         Handle        polySave;    o
  1893.         CQDProcsPtr    grafProcs;    .
  1894.       CGrafPtr    CGrafPort *
  1895.       CWindowPtr    CGrafPtr
  1896. /***RGBColor***/
  1897. RGBColor(2q)
  1898.  
  1899. 【名前】
  1900.     RGBColor - 一つの色を指定する data type
  1901.  
  1902. 【形式】
  1903.     ■RGBColor    V-48, 136
  1904.  
  1905.       RGBColor
  1906.         unsigned short red;
  1907.         unsigned short green;
  1908.         unsigned short blue;
  1909. /***ColorTable***/ CTabPtr CTabHandle ColorSpec ColorSpecPtr CSpecArray
  1910. ColorTable(2q)
  1911.  
  1912. 【名前】
  1913.     ColorTable -
  1914.     ColorSpec  -
  1915.  
  1916. 【形式】
  1917.     ■ColorTable    ??
  1918.       ColorTable
  1919.         long    ctSeed;
  1920.         short    ctFlags;
  1921.         short    ctSize;
  1922.         CSpecArray ctTable;
  1923.  
  1924.       CTabPtr    ColorTable *
  1925.       CTabHandle    ColorTable **
  1926.  
  1927.     ■ColorSpec    V-49, 136
  1928.       ColorSpec
  1929.         short    value;
  1930.         RGBColor rgb;
  1931.  
  1932.       ColorSpecPtr    ColorSpec *
  1933.       CSpecArray    ColorSpec    [1]
  1934. /***MatchRec***/
  1935. MatchRec(2q)
  1936.  
  1937. 【名前】
  1938.     MatchRec    -
  1939.  
  1940. 【形式】
  1941.     ■MatchRec    V-72
  1942.  
  1943.       MatchRec
  1944.         unsigned short    red;
  1945.         unsigned short    green;
  1946.         unsigned short    blue;
  1947.         long        matchData;
  1948. /***GammaTbl***/ GammaTblPtr GammaTblHandle
  1949. GammaTbl(2q)
  1950.  
  1951. 【名前】
  1952.     GammaTbl    -
  1953.  
  1954. 【形式】
  1955.     ■GammaTbl    ??
  1956.       GammaTbl
  1957.         short    gVersion;
  1958.         short    gType;
  1959.         short    gFormulaSize;
  1960.         short    gChanCnt;
  1961.         short    gDataCnt;
  1962.         short    gDataWidth;
  1963.         short    gFormulaData[1];
  1964.  
  1965.       GammaTblPtr        GammaTbl *
  1966.       GammaTblHandle    GammaTbl **
  1967. /***ITab***/ ITabPtr ITabHandle
  1968. ITab(2q)
  1969.  
  1970. 【名前】
  1971.     ITab - インバーステーブル
  1972.  
  1973. 【形式】
  1974.     ■ITab    V-139
  1975.       ITab
  1976.         long    iTabSeed;
  1977.         short    iTabRes;
  1978.         unsigned char iTTable[1];
  1979.       ITabPtr    ITab *
  1980.       ITabHandle    ITab **
  1981. /***SProcRec***/ SProcPtr SProcHndl CProcRec CProcPtr CProcHndl
  1982. SProcRec(2q)
  1983.  
  1984. 【名前】
  1985.     SProcRec -
  1986.     CProcRec -
  1987.  
  1988. 【形式】
  1989.     ■SProcRec    V-146
  1990.       SProcRec
  1991.         Handle    nxtSrch;
  1992.         ColorSearchProcPtr srchProc;
  1993.  
  1994.       SProcPtr    SProcRec *
  1995.       SProcHndl    SProcRec **
  1996.  
  1997.     ■CProcRec    V-146
  1998.       CProcRec
  1999.         Handle    nxtComp;
  2000.         ColorComplementProcPtr compProc;
  2001.  
  2002.       CProcPtr    CProcRec *
  2003.       CProcHndl    CProcRec **
  2004. /***GDevice***/ GDPtr GDHandle
  2005. GDevice(2q)
  2006.  
  2007. 【名前】
  2008.     GDevice    -
  2009.  
  2010. 【形式】
  2011.     ■GDevice    V-119; VI-21-8
  2012.       GDevice
  2013.         short        gdRefNum;
  2014.         short        gdID;
  2015.         short        gdType;
  2016.         ITabHandle    gdITable;
  2017.         short        gdResPref;
  2018.         SProcHndl    gdSearchProc;
  2019.         CProcHndl    gdCompProc;
  2020.         short        gdFlags;
  2021.         PixMapHandle    gdPMap;
  2022.         long        gdRefCon;
  2023.         Handle        gdNextGD;
  2024.         Rect        gdRect;
  2025.         long        gdMode;
  2026.         short        gdCCBytes;
  2027.         short        gdCCDepth;
  2028.         Handle        gdCCXData;
  2029.         Handle        gdCCXMask;
  2030.         long        gdReserved;
  2031.  
  2032.       GDPtr        GDevice *
  2033.       GDHandle    GDevice **
  2034.  
  2035.         << gdType >> V-120
  2036.         clutType    0
  2037.         fixedType    1
  2038.         directType    2
  2039.  
  2040.         << gdFlags >> VI-21-10
  2041.         gdDevType    0
  2042.         burstDevice    7
  2043.         ext32Device    8
  2044.         ramInit        10
  2045.         mainScreen    11
  2046.         allInit        12
  2047.         screenDevice    13
  2048.         noDriver    14
  2049.         screenActive    15
  2050. /***GrafVars***/ GVarPtr GVarHandle
  2051. GrafVars(2q)
  2052.  
  2053. 【名前】
  2054.     GrafVars - data type
  2055.  
  2056. 【形式】
  2057.     ■GrafVars    V-67
  2058.       GrafVars
  2059.         RGBColor rgbOpColor;
  2060.         RGBColor rgbHiliteColor;
  2061.         Handle    pmFgColor;
  2062.         short    pmFgIndex;
  2063.         Handle    pmBkColor;
  2064.         short    pmBkIndex;
  2065.         short    pmFlags;
  2066.  
  2067.       GVarPtr    GrafVars *
  2068.       GVarHandle    GrafVars **
  2069. /***QDProcs***/ QDProcsPtr CQDProcs CQDProcsPtr
  2070. QDProcs(2q)
  2071.  
  2072. 【名前】
  2073.     QDProcs     -
  2074.     CQDProcs -
  2075.  
  2076. 【形式】
  2077.     ■QDProcs    I-197
  2078.       QDProcs
  2079.         Ptr    textProc;
  2080.         Ptr    lineProc;
  2081.         Ptr    rectProc;
  2082.         Ptr    rRectProc;
  2083.         Ptr    ovalProc;
  2084.         Ptr    arcProc;
  2085.         Ptr    polyProc;
  2086.         Ptr    rgnProc;
  2087.         Ptr    bitsProc;
  2088.         Ptr    commentProc;
  2089.         Ptr    txMeasProc;
  2090.         Ptr    getPicProc;
  2091.         Ptr    putPicProc;
  2092.  
  2093.       QDProcsPtr    QDProcs *
  2094.  
  2095.     ■CQDProcs    V-91
  2096.       CQDProcs
  2097.         Ptr    textProc;
  2098.         Ptr    lineProc;
  2099.         Ptr    rectProc;
  2100.         Ptr    rRectProc;
  2101.         Ptr    ovalProc;
  2102.         Ptr    arcProc;
  2103.         Ptr    polyProc;
  2104.         Ptr    rgnProc;
  2105.         Ptr    bitsProc;
  2106.         Ptr    commentProc;
  2107.         Ptr    txMeasProc;
  2108.         Ptr    getPicProc;
  2109.         Ptr    putPicProc;
  2110.         Ptr    opcodeProc;
  2111.         Ptr    newProc1;
  2112.         Ptr    newProc2;
  2113.         Ptr    newProc3;
  2114.         Ptr    newProc4;
  2115.         Ptr    newProc5;
  2116.         Ptr    newProc6;
  2117.  
  2118.       CQDProcsPtr    CQDProcs *
  2119.